<extend name="Public/base" />
<block name="style">
<style>
.newimg_content ul {
    text-align: center;
    font-size: 13px;
    padding: 20px 0 0 0;
}
.newimg_content ul li{
  list-style: none;
    height: 30px;
    line-height: 30px;
    margin: 0 0 2px 0;
}
.newimg_content ul li a{
    display: block;
    text-decoration: none;
    color: #666;
}
.newimg_content ul li a:hover ,.newimg_content ul li .acitve{
    color: #eee;
    background: #333;
}

</style>
</block>
<block name="body">
  <div class="center_wrap row">
    <div class="title">
      <p class="center_title">
        <span>用户列表</span>
      </p>
    </div>
        <div class=" col-sm-8">
          <h2>搜索用户</h2>
          <div class="input-group col-sm-6">
            <input type="text"  class="form-control search-query" placeholder="用户名">
            <span class="input-group-btn">
              <button type="button" class="btn btn-purple btn-sm">
                搜索
              </button>
            </span>
      </div>
    </div>
     <div class="col-sm-12">
      <div class="groupimg_content">
        <div class="row">

      <volist name="list" id ="vo">
            <div class="col-sm-3 col-md-3">
            <!-- <a href="{:u('zutu_list',array('zutu_id'=>$vo['zutu_id']))}" class="thumbnail"> -->
            <a href="javascript:void(0);" id="add_user" userid="{$vo.user_id}" onclick="show_wait_sendgoods_stock_list_100('{:u('add_user',array('user_id'=>$vo['user_id']))}','{$vo.user_name}')" class="groupImg thumbnail">
              <img src="__PUBLIC__/{$vo.head}"  class="imgcss" width="180" height="180" title="添加{$vo.user_name}为好友">
                  <p class="content2 " style="text-align:center">{$vo.user_name}</p>
                  <p class="content2 " style="text-align:center">添加好友</p>
            </a>
          </div>
        </volist>
        </div>
      </div>
    </div>
  </div><!--/#gallery-->
</block>

<block name="script">
  <script type="text/javascript">
  var content="";
   $(function(){
/*    $('#add_user').bind('click',function(){
       var user_id = $(this).attr('userid');
       var url = "{:u('add_user')}";
       $.ajax({
         url: url,
         type: 'POST',
         data: {"user_id": user_id
         },
         complete: function(xhr, textStatus) {
           //called when complete
         },
         success: function(data) {
           if(data !=""){
            $('#right_list').html(data);
           }
         },
         error: function(xhr, textStatus, errorThrown) {
           //called when there is an error
         }
       });
       
    });*/
   })

   function show_wait_sendgoods_stock_list_100(url,title){
        layer.open({
            type: 2,
            title: '添加'+title+'好友',
            shadeClose: true,
            shade: 0.8,
            area: ['50%', '50%'],
            /*btn: ['确定'],*/ //按钮
            content:url,
   /*         end : function(){ 
              alert(content);
             }*/
        });
    }


  </script>  
</block>




